-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: access module #77
Conversation
- update imports
solidity/contracts/modules/accessControl/ModuleAccessController.sol
Outdated
Show resolved
Hide resolved
abstract contract AccessControllerModule is AccessController, Module { | ||
abstract contract ModuleAccessController is CommonAccessController, Module { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was doubting whether ModuleAccessController
should inherit from Module
, as it is not the module itself, and had a breaking idea: why not migrate it to prophet-core
and make Module
inherit from it, such that:
Oracle is OracleAccessController
, whileModule is ModuleAccessController
andMyAccessModule is Module
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel the same about ModuleAccessController
inheriting from Module
. The need to extend Module
comes from the necessity of accessing the ORACLE
immutable variable, which is actually define in Validator
, from which Module
extends.
I like the suggestion, but I'd add it in a future, smaller PR to unblock the current chain of PRs.
🤖 Linear
Closes OPT-515